Add support for native Fragments. Fixes #1