Two-frequency VLA observations of compact planetary nebulae