Tests/fullArrays.js:
  One test did not allocate space correctly

ems/ems.cpp
Get NAN	from math.h instead of -NaN from 0/0

Fix bug	introduced yesterday to	switch on memory type, not argument