Homogeneous and multilinear forms related to a theorem of Jordan and von Neumann