Added support for memory aligned buffer allocation.
Added support for pointer array parameters.