Fixed memory error showing up only occasionally for yale elementwise
operations (subtraction). Fixed some spec problems.