create typed array exactly (reported by reinvanmeeteren at https://github.com/arton/rjb/issues/23)