REF: align transform logic flow
Implement SeriesGroupBy._transform_general to match DataFrameGroupBy._transform_general, re-arrange the checks within the two `transform` methods to be in the same order and be more linear.  Make the two _transform_fast methods have closer-to-matching signatures
thanks @jbrockmendel 