Trial wave function construction and the nodes of trial and exact wave functions in quantum Monte Carlo