Fixed ParameterDef/Ref and VariableDef/Ref

Todo: add ByReferenceType referencing