Add failing test case and fix: stricter checks for nestable objects. Fixes #60 and #61.