change generics from get and delete to objects.

This keeps from having to change existing implementations, while still
supporting additional key types. Since the key is only used as an object
anyway, there shouldn't be any type concerns anyway really.