add a test for getindex(::Number, ::Real)

ref b718cbc72e90