Backported regression tests from 1.3.0
Dereference of null pointer in zim_Phalcon_Acl_Adapter_Memory_dropResourceAccess

Fix #1376
(cherry picked from commit ac556b9169341f3fed215103392a7d7cc0cf12cd)
Fix segfault in Phalcon\Db\Column