Resolve "automatic array casting in C++ does not work" Closes #14 as well, now with a test. See merge request !9