Adds :safe option to #expose

I suppose that exposing of a non-existent attribute should raise an exception by default and current behavior is incorrect, but it should be available as an option, so I added the :safe option for this purpose.