Allow array for dynamic routing

#951