Change staleKeys to nonStaleKeys.

The name staleKeys was legacy and incorrect. The list actually contains
valid relationship keys.
Code formatting.
Add support for byte, short, and char relational keys.