* lisp/org.el (org-mark-subtree): Fix bug when marking subtree with point on an inlinetask. Refactor code. * testing/lisp/test-org.el: Add test.