Replace braces by brackets to silence warnings from Julia 0.4

I can squash these commits if desired.