Make HierarchicalUriComponents Serializable

Issue: SPR-10266