This problem seems to be related to `5.7.3 Implicit type conversion problems and shortcomings` in http://www.cs.sandia.gov/~rabartl/TeuchosMemoryManagementSAND.pdf.