Less strict object checking. Fixes #15