Add type-specific allocation procs.
Add missing cast.
Add allocation unit tests.
Merge branch 'devel' into alloc-overloads
Merge pull request #977 from EXetoC/alloc-overloads

Allocation overloads