fix($state): registering ignores Object properties

Closes #511