Fixes #385 - not accepting factory names for arrayFactory and objectFact...

@jacobawenger