Fixed type mismatch when computing shape bounds.