WICKET-4744 Investigate reworking WicketObjects#clone(Object|Model) methods to use ISerializer

Rework WicketObjects#cloneObject() to use ISerializer.
WicketObjects#cloneModel() has special logic to avoid cloning Component instances and it is not easy to be reworked

Additionally improved the API by using type inference for the return types.
WICKET-3491 Introduce IComponentOnConfigureListener
WICKET-4744 Investigate reworking WicketObjects#clone(Object|Model) methods to use ISerializer

Deprecate WicketObjects#cloneModel.
Merge branch 'master' into sandbox/WICKET-4744-WicketObjects-use-Java-Serialization-APIs
Remove unused local variable
WICKET-4744 Investigate reworking WicketObjects#clone(Object|Model) methods to use ISerializer

Use JavaSerializer if there is no Application thread local