Record dynamic references location in order to aid diagnostics when reporting bad references
Verify parameter default values match types
Updated version for parameter Defaults check