Fixed inline defintion to no longer cause errors in unrecoginized compilers.
Added delete methods for allocated types.