Replace braces by brackets to silence warnings from Julia 0.4

I can squash these commits if desired.
I think this and below need to be `Any[y...]`, since otherwise the vectors will be concatenated.