New function to find all object type ids that have a specified meta key

Also fixed a bug
Also updated recent commit to adhere to coding stnadards (whitespace )