Rename xxx_to_char() -> to_char()

No functional change.
Remove limit of minimumSplitDepth

There is no reason why an user cannot set
it at a value less than 4.

No functional change.
Pass CastlingFlag argument only

Instead of Color and CastlingSide. Change functions API
accordingly.

No functional change.
Merge remote-tracking branch 'upstream/master'