Support defined? with ::constant (fixes #319)

This ruby syntax now returns nil for undefined constants, or 'constant'
if it exists. This commit adds 2 specs for this syntax.