Fix Marshall.dump when used with expectations on nil
Created by: JonRowe
When nil has had expectations set on it (or even allowed on it) attempts to marshall it cause a NoMethodError
from object.dup
.
Instead we should use the nil singleton as is and remove mocks that way.
Fixes #274 (closed).