[HHH-8941] add SQLFunctionTemplate for replace() to FirebirdDialect

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/FirebirdDialect.java
HHH-8941 simplified the dialect function
HHH-9201 - Evict cache instead of remove after transaction completion
HHH-9203 - ConcurrentNaturalIdCacheStatisticsImpl#getEntries() fails
with ClassCastException

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/naturalid/mutable/cached/CachedMutableNaturalIdStrictReadWriteTest.java
HHH-9145 Use JDBC Wrapper API for type checks
HHH-9145 simplified JDBC check