Added callable typehint and active transaction check to Connection::transaction()