Revert "Make CPubKey statically allocated"

This reverts commit cf12d61d124a096a5e3cf1f804ea8cc59af6112f.