More fixes to the return type evaluation for synchronous action invocations