unpack handles empty objects, resolves #4