Revert "Only compile-time optimize queries for local or required modules"

This reverts commit 2265f6b46fdc13dcee271e299491cb303d2c6a46.
Fix from builder optimisation when building queries

Construct the query at compile time but move the only dynamic part of
query (the model’s source) to runtime.

This removes unnecessary compile time dependencies between modules but
still keeps the optimisation.
Merge pull request #266 from elixir-lang/emj-fix-builder-opt

Fix from builder optimisation when building queries