auto-resolve array params with empty array, typehinted params with new instance