Add support for typed arrays (close #20)