Db\Adapter allow use Sql objects in query method

first commit - this is the https://github.com/zendframework/zf2/pull/5306
second commit - this PR