Replace rspec-mock's stub_const with our own

Less pretty, but more compatible. (Closes #10)