Separate validateTypeObject and validateTypeArray. Also fix path resolver.
nextTick is not needed to be used.
'oneOf' can resolve multiple patterns of validation.