These functions are short enough that inlining them actually reduces the flash footprint of the test on the samr21-xpro
The memarray_alloc can be error prone to use as the block returned can contain data from previous uses. The memarray_calloc call added in this commit always zeroes the block before returning it to the user.