Allow statements to be prepared on any object

Statements aren't cleaned up at the end of a transaction, so this is
safe.