Multivalue numerical methods for partitioned differential problems: from second order ODEs to separable Hamiltonians