Set the animation type to float/int even if caller skips ofFloat/ofInt
static constructors.

Closes #947.