Incorrectly regarded as goofs
This was true only until Disney abandoned the Extended Universe as canon. Han's children were Jacen, Jaina and Anakin and Luke's son was Ben in the expanded universe. The Expanded Universe is no longer considered canon to the Star Wars universe as it applies to these movies.
It could in fact be argued that the "Ben" name was used as a nod to the now non-canon EU.