Inverts an object hash