from whence "square"?

My slang dictionary just notes that square has been in use as a term for a nerd since the early 1900s, but here's a WAG: from the phrase square peg in a round hole, meaning a person who does not fit in.