Minor optimization for publisher
Added try_implicit_cast<>() to check callbacks validness at run time
Tests for try_implicit_cast<>()