Altered invocation IL generation to use constrained virtual calls instead of boxing for value types, if possible.
IL verifier fixes for constrained invocations:

* When checking that the 'this' object on the stack matches the type we're constraining for the invocation, enums on the stack get reported as their underlying type (int, rather than System.Enum). So, use the underlying type of the constraining type as well so that the types match.
* Once that check has passed, the 'this' object is checked against the method's 'this' type; again this fails for enums because they're reported as underlying types. But if the type's constrained then it's safe for us to pretend that the enum type is actually the constrained type (System.Enum, etc), which passes the check against the method.
When calling System.Object methods on structs (GetType, ToString, etc), previously the code was boxing the struct to pass as the instance parameter. The IMemoryLocation patch stopped this - the intention being to emit .constrained and then callvirt instead - but structs were falling through the gap, neither boxing nor emitting constrained/callvirt.

MSDN actually recommends that System.Object methods on value types always be emitted as constrained and callvirt instructions. From the docs for OpCode.Call:

"When calling methods of System.Object on value types, consider using the constrained prefix with the callvirt instruction instead of emitting a call instruction. This removes the need to emit different IL depending on whether or not the value type overrides the method, avoiding a potential versioning problem. Consider using the constrained prefix when invoking interface methods on value types, since the value type method implementing the interface method can be changed using a MethodImpl. These issues are described in more detail in the Constrained opcode."

This change implements that recommendation - ensuring that both 'this.' and 'base.' invocations of System.Object methods on value types are compiled as constrained virtual calls.
Merge pull request #139 from richard-fine/foreach

Fix System.Object method invocation on value types to be constrained
fixing cherrypicked d530d836
[aot] fixing up cherrypicked of AOT class allocation leak fix
exporting mono_reflection_type_get_handle (needed for Type -> klass query)
Merge branch 'unity-staging' of https://github.com/Unity-Technologies/mono into unity-staging
better .gitignore patterns for temp build folders
Merge pull request #140 from Unity-Technologies/foreach

Eliminate allocations on foreach
Merge pull request #142 from Unity-Technologies/unity-staging

Mono fixes for 5.0