couple edge case fixes for ConfigValue fields

- correctly handle during sugar expansion
- pass on ConfigValue.NULL as is rather than null (null would be
a missing path in this case)
use intellij language annotation + other niceities