fix .elements() to accept the new element syntax

fixes #135