Fix type reflection for pointer values