Fix bug with fields having Scope.preferences

Setting a field to have Scope.preferences caused get_for_key to throw an error.  The fix is just a bit more careful when unpacking the key.