index: properly get the array of available proxy "types"

Before it would be an empty array due to JS inheritance, and the
fact that Object.keys() doesn't traverse up the prototype chain.