Remove explicit casts to SpatialTransactionBoundQueryContext

Use SpatialOperations trait on QueryContext