Fix bug exposed by testing with VTKv6

Due to the way the code is structured, the extent variable
contained a mix of ints and floats.  This was an acceptable
argument for the VTKv5, method but VTKv6 is more strictly correct
on this point.