The expression in question dates back to the 1920s and always was used to mean that the person referred to was very ignorant. The other 'meanings' are later derivations used by people ignorant of the original meaning or the phrase's origins. /dw