This is significantly more robust, than the ast based detection and can record very complex cases of indirect parameter reflection. Fixes #554