Allow weights and dimensions to be expressed with floats as well as ints.
Bumped version.