Simplify Foreign.Marshal.Alloc functions with ScopedTypeVariables

Authored by osa1 on Feb 10 2018, 12:12 AM.