Correctly handle prefixed value functions

This fixes an issue where the incorrect attribute name was being set in the snapshot array.

This is probably not the best solution.

Given a function `getValueAvatar`, it sets `snapshot['avatar']` by removing `getValue` and lowercasing the first letter that's left (if it's a capital).