add auto null getter for service locator
add null state
remove enum to int casting for serialization
remove xml name attributes from state fields
fix internal classes not triggering auto save