Add optional claim parameter to Statement constructor

This is basically the same as  #186 but ensures compatibility with the old api.