Fix memory error
include dtype in rand
Test slicing a bit better