fix bug with node 0.11 (slice does not exist on typed arrays)