minor bad changes to numerical gradient check and getting rid of stack2grad stuff