Allow magicline to accept object with custom elements