Fix argument order for lifecycle events.

@SoapyIllusions 

In the new lifecycle events, we already handle `@beforeAction {options}, ->` or `@beforeAction (->), {options}` when you're using a function argument. However we only allow `@beforeAction 'foo', {options}` when using a string argument. This fixes that, and allows both orders in all cases.