AppleScript bug when using Myriad Tables Library: "types" is replaced with "type"
To get around this terminology conflict, use the following line:

set theTypes to anItem's |types|()


Here's more info (from this webpage):


  You can force an illegal variable name to be legal by surrounding it
  with vertical bars, also known as "pipes."
  
  The real effect of pipes is to tell AppleScript to suspend its
  compile-time parsing rules and turn what's inside the pipes into a
  token. The main reason this is genuinely useful is to avoid a conflict
  between a token name and a term already in use.


Note:


  A variable name surrounded by pipes is case-sensitive. AppleScript
  will not touch the case of names in pipes after compilation.