Use define_singleton_method for space

This is necessary, as `spec` might not be `#inspect`able (e.g. sql:
    Proc)