Fix two compile time errors to allow SOA pointer and array be passed as function argument.
Merge pull request #411 from pengtu/master

Simple fixes to allow SOA pointer and array be passed as function argument.