added opts optional parameter to fromObject
improved model extends hack to avoid multiple calls to the same constructor
0.6.5