fixed some exceptions thrown by RascalStackFrame and RascalValue