Invocation spec handling in serializer.