FIX: issue #981 (Compiled dynamic object creation broken)