Short and double and arrays + tests