BUG: fix transform with integers
Merge pull request #7973 from cpcloud/transform-oddity-7972

BUG: fix transform with integers