Fixed issue with anonymous methods returning non-basic types.