(maint) Fix comparison error float - string

The comparison used kind_of(), intead of kind_of?()
Test added.