Move rmem.h out of frontend headers
Use rmem instead of C malloc in Array::toChars