bugfix and tests for DeclarativeTypeParser_RefList