Added support for accessing static fields (e.g. AttributeSensors) from YAML
Updated following PR review