Isochronicity and linearizability of planar polynomial Hamiltonian systems