Less strict object checking. Fixes #15
Merge pull request #18 from mitar/less-strict

Less strict object checking. Fixes #15