reduce Dict lookups

fixes #1627
fix nullref in GetFieldsAndProperties
Merge pull request #1899 from Particular/FixDictionaryLookups

reduce Dict lookups