fix pointer unbox to be less strict about type, formatting