clean copy of GridMath from latest IDV

[1720]
First setMetadataMap pass on DerivedGridFactory

All I did was make sure every 'new FlatField' or 'new FieldImpl'
has a corresponding 'setMetadataMap'

[1720]