RFC: more key/value type checks in OnHeapStore

Provided these are necessary and correct, I'll make some test cases and make a real PR meant to be merge
oops. should be "value" there. already fixed