Fix type reflection for pointer values

Patch & tests addressing this issue #1