Added specs for defined?(__FILE__) and friends.
Fixed defined? for __ENCODING__, __FILE__. Fixes #2605.