Accept arrays in render(), simplify some small things.