Started moving stats internals out of core

For various reasons, code that is actually specific
to the stats packages are intermingled with the
base package / primitives. This might be necessary
in GNU R but we should be able to move it out
every into the stats module
complete.cases(): support for lists and matrices