add duck typing in CoreObject
Merge branch 'master' of https://github.com/codeflyer/entityx