Fix bug in toShort/toInt/toLong on vectors with sizes not evenly divisible by 8