Fixed bugs.

* cradle/memory/memory_resource_adaptor.hpp: Fixed bugs.
* src/memory/memory_resource.cpp: Fixed bugs.
* test/unit/functional/invoke_run.cpp: Added workarounds for GCC 4.8.x.
* test/unit/type_traits/is_callable_run.cpp: Added workarounds for GCC
  4.8.x.