Parse type encodings instead of hard-coding key paths

Thinking this might be a better approach, especially considering what I'm working on next that uses this library. :wink: