BUG: handle non integer types for size

Closes gh-3173